'use strict';
const axios = require("axios")
exports.main = async (event, context) => {
	// //event为客户端上传的参数
	// console.log('event : ', event)
	
	// //返回数据给客户端
	// return {event,msg:"这个是来自云函数的数据"}
	
	// const dbJQL = uniCloud.databaseForJQL({event, context});
	// const result = await dbJQL.collection("hm-article").get();
	// return result;
	
	const result = await axios.get("https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata");
	return result.data;
	
};
